package com.care.doctor.remote;

import com.care.common.core.domain.Result;
import com.care.doctor.common.domain.DTOHospital;
import com.care.doctor.common.req.ListReq;
import com.care.doctor.remote.factory.RemoteHospitalFallbackFactory;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "HospitalRemoteService",value = "care-doctor",fallbackFactory = RemoteHospitalFallbackFactory.class)
public interface HospitalRemoteService {

    @PostMapping("/hospital/findHospital")
    public Result<PageInfo<DTOHospital>> findHospital(@RequestBody ListReq req);
}
